// =================================================================================================
//
//	CopyEngine Framework
//	Copyright 2012 Eran. All Rights Reserved.
//
//	This program is free software. You can redistribute and/or modify it
//	in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================

package utils
{
    import flash.display.DisplayObject;

    public class GUIUtils
    {
        public function GUIUtils()
        {
        }

        public static function replaceTargetWithPH(_targetMc:DisplayObject, _phMc:DisplayObject):void
        {
            if (_phMc != null && _phMc.parent != null && _targetMc != null)
            {
                _phMc.parent.addChild(_targetMc);
                _targetMc.x = _phMc.x;
                _targetMc.y = _phMc.y;
                _phMc.parent.removeChild(_phMc);
            }
        }

    }
}
